<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>Hello World</title>
    <script src="../vue.js"></script>
  </head>
  <body>
    <div id="app">
      <div class="123" v-for="(item,key) of list" key="item.id" v-if="item.isShow">
        {{ key }} --- {{ item.text }}
      </div>
    </div>
    <script>
      var app = new Vue({
        el: '#app',
        data: {
          list: [{
            id:'1',
            text:'a',
            isShow: true
          },{
            id:'2',
            text:'b',
            isShow: true
          },{
            id:'3',
            text:'c',
            isShow: false
          },{
            id:'4',
            text:'d',
            isShow: true
          }]
        }
      })
    </script>
  </body>
</html>
